<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>HiAll Administrator's Control Panel</title>
        <link rel="stylesheet" href="css/common.css" type="text/css" media="all" />
    </head>
    <body>
        <div id="append"></div>
        <div class="container">
                <h2 class="admintitle">简历筛选</h2>

                <div id="srchuserdiv" class="tabcontentcur" style="width:90%;position:relative">
			<form method="POST" action="index.php?c=ResumeManage&a=Search">
			<div class="jbxx">
			<div>
				<P>姓名：<input type="text" name="username" value="<?=$username?>" /></p>
				<P>性别：<select name="sex">
						<option value="0">不限</option>
						<option value="1" <?php if($sex == 1) echo 'selected="selected"'; ?>>男</option>
						<option value="2" <?php if($sex == 2) echo 'selected="selected"';?> >女</option>
						</select></P>
			<P>学校：<input type="text" name="schoolname" value="<?=$schoolname?>" /></P>
				<P>专业：<input type="text" name="majorname" value="<?=$majorname?>" /> </P></div>
				
			<div>
				<P>学历：
				<select name="degree">
                    			<option value="">请选择</option>
                    			<?=Libs_CommonHelper::showSelectOptions(array('data'=>$eduDegree, 'selVal'=>$degree))?>
                		</select></P>
			
				<P>所在城市：<select name="birthProv">
						<option value="">不限</option>
				<?php
					foreach($cityArr as $cityid=>$cityname){
						if($birthProv == $cityid){
							echo '<option value="'.$cityid.'" selected="selected">'.$cityname.'</option>';
						}else{
							echo '<option value="'.$cityid.'">'.$cityname.'</option>';
						}
					}
				?>
				</select>
			</P>
				<P>简历标签：
				<select name="tag">
                        	<option value="0">请选择</option>
                        	<?php   
                                if($tag_list){
                                        foreach($tag_list as $tag_v){                                                
						$sel_str = "";
						if($tag == $tag_v['id']){
							$sel_str = "selected";
						}
						echo '<option value="'.$tag_v['id'].'" '.$sel_str.'>'.$tag_v['name'].'</option>';                                        
					}
                                }
                        ?>
                        </select></P>
			<p>简历状态：
                     <select name="state">
                     <option value="0">请选择</option>
                     <?php
                                if($state_arr){
                                        foreach($state_info as $sid){
						if($state == $sid){
                                                	echo '<option value="'.$sid.'" selected>'.$state_arr[$sid].'</option>';
						}else{
                                                	echo '<option value="'.$sid.'">'.$state_arr[$sid].'</option>';
						}
                                        }
                                }
                     ?>                         
                      </select></p>	
			<p>
				是否首选：
				<select name="is_primary">
				<option value="">不限</option>
				<option value="Y">首选</option>
				<option value="N">备选</option>
				</select>
			</p>
	
				<P><button name="s"/>查询</button></P></div>
			</div>
			</form>
		     <div class="jlzt"><div><p>
		     设置简历状态：
		     <select onchange="changestate(<?=$euid?>,this)">
		     <option value="0">请选择</option>
		     <?php
				if($state_arr){
					$count = 0;
					foreach($state_info as $sid){
						$count++;
						echo '<option value="'.$sid.'">'.$state_arr[$sid].'</option>';
					}
				}
		     ?>
		      </select></p><p>
		       设置简历标签：
			<select onchange="settag(<?=$euid?>,this)">
		     	<option value="0">请选择</option>
			<?php
				if($tag_list){
					foreach($tag_list as $tag){
						echo '<option value="'.$tag['id'].'">'.$tag['name'].'</option>';
					}
				}
			?>
			</select></p></div><div>
			<p><button onclick="javascript:exportExcel()" />批量导出</button></p>
			<p><button onclick="javascript:gonew('index.php?c=ResumeManage&a=PlaceAdd')" />新增地点</button></td></p></div><div>
			<p>面试、笔试安排：<select name="placetype" id="placetype"><option>--选择类型--</option><option value="1">安排笔试</option><option value="2">安排面试</option></select></p>
			<p><select name="placelist" id="placelist">
			    <option value=''>---选择地点---</option>
			<?php
				if($placeList){
					foreach($placeList as $place){
						echo "<option value='{$place['id']}'>{$place['name']}</option>";
					}
				}
			?>
			</select></p>
			<p>时间安排：<input type="text" name="placetime" id="placetime" /> 形如：2011-9-29 14:30:00</p>
			<p><button id="schedual" onclick="setplace(<?=$euid?>)" >安排</button></p></div>
		</div>
                    <table  class="datalist fixwidth">
						<tbody><tr>
							<th nowrap="nowrap"></th>
							<th nowrap="nowrap">编号</th>
							<th nowrap="nowrap">姓名</th>
							<th nowrap="nowrap">学校</th>
							<th nowrap="nowrap">专业</th>
							<th nowrap="nowrap">学位</th>
							<th nowrap="nowrap">所在城市</th>
							<th nowrap="nowrap">评估分数</th>
							<th nowrap="nowrap">状态</th>
						</tr>
                            <?php 
			    if($dataList){
			    	foreach($dataList as $info){
					$eduinfo = array();
					$degree =  $info['degree'];
					$birthProv = $info['cur_province'];
					if(array_key_exists($degree,$eduDegree)){
						$degreeName = $eduDegree[$degree];
					}
					if(array_key_exists($birthProv,$cityArr)){
						$cityName = $cityArr[$birthProv];
					}
					
					if($info['score']){
						$scorestr = '<a href="index.php?c=ResumeScoreSet&uid='.$info['uid'].'&view=1">'.$info['score'].'</a>';
					}else{
						$scorestr = '<a href="index.php?c=ResumeScoreSet&uid='.$info['uid'].'">评分</a>';
					}
                             ?>
						<tr>
								<td width="20"><input type="checkbox" name="userid[]" value="<?=$info['uid']?>" /></td>
								<td><?=$info['uid']?></td>
								<td><?=$info['trueName']?></td>
								<td><?=$info['schoolName']?></td>
								<td><?=$info['majorName']?></td>
								<td><?=$degreeName?></td>
								<td><?=$cityName?></td>
								<td><?=$scorestr?></td>
								<td><?=$state_arr[$info['state']]?></td>
						</tr>
							<?php
							}
						}
							?>
					</tbody></table>
					<?=$pagestring?>
            </div>
        </div>

	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/emanage.js"></script>
        <script type="text/javascript" src="js/common.js"></script>

    </body>
</html>
